import request from "@/utils/request";

export function addTrainingPlan(trainingPlan) {
    return request({
        url: '/trainingPlan/addTrainingPlan',
        method: 'post',
        data:trainingPlan
    })
}

export function deleteTrainingPlan(ids) {
    return request({
        url: '/trainingPlan/deleteTrainingPlan',
        method: 'delete',
        data:ids
    })
}

export function changeTrainingPlan(trainingPlan) {
    return request({
        url: '/trainingPlan/updateTrainingPlan',
        method: 'post',
        data:trainingPlan
    })
}

export function getAllTrainingPlan(trainingPlan,page,pageSize) {
    return request({
        url: '/trainingPlan/getAllTrainingPlan?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:trainingPlan
    })
}
export function getTrainingPlanList() {
    return request({
        url: '/trainingPlan/getTrainingPlanList',
        method: 'get',
    })
}
